package com.bingbing.back.controller;

import com.bingbing.back.service.SchoolMediaService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@CrossOrigin
@RestController
@RequestMapping("/media")
public class SchoolMediaController {
    @Resource
    private SchoolMediaService schoolMediaService;

    // 根据学校id显示学校的风景图片
    @RequestMapping("/showSchoolPics")
    public List<String> showSchoolPics(int schoolId){
        return schoolMediaService.showSchoolPics(schoolId);
    }
}
